import request from '@/utils/request'

/**
 * 客户信息分页查询
 * @param {查询条件} data
 */
export function pageBaseCustom(query) {
  return request({
    url: 'BaseManage/BaseCustom/pageList',
    method: 'get',
    params: query,
  })
}

/**
 * 新增客户信息
 * @param data
 */
export function addBaseCustom(data) {
  return request({
    url: 'BaseManage/BaseCustom',
    method: 'post',
    data: data,
  })
}
/**
 * 修改客户信息
 * @param data
 */
export function updateBaseCustom(data) {
  return request({
    url: 'BaseManage/BaseCustom',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取客户信息详情
 * @param {Id}
 */
export function getBaseCustom(id) {
  return request({
    url: 'BaseManage/BaseCustom/' + id,
    method: 'get'
  })
}

/**
 * 删除客户信息
 * @param {主键} pid
 */
export function delBaseCustom(pid) {
  return request({
    url: 'BaseManage/BaseCustom/delete',
    method: 'POST',
    data: pid
  })
}
